﻿<Window x:Class="Microsoft.Services.Clab.UI.Mvvmc.VisualStudio.TemplateWizards.MvvmcItemTemplateWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Title="Mvvmc Item Wizard"
        Width="800"
        Height="300"
        MinWidth="800"
        MinHeight="300"
        WindowStartupLocation="CenterScreen"
        mc:Ignorable="d">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="20" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <TextBlock VerticalAlignment="Center" Text="Name prefix:" />
        <TextBox Grid.Column="1" 
                 Height="23"
                 Text="{Binding Path=Prefix, UpdateSourceTrigger=PropertyChanged}" />
        <Label Grid.Row="2" Content="Controller name:" />
        <Label Grid.Row="2" 
               Grid.Column="1"
               Content="{Binding Path=ControllerName}" />
        <Label Grid.Row="3" Content="ViewModel name:" />
        <Label Grid.Row="3" 
               Grid.Column="1"
               Content="{Binding Path=ViewModelName}" />
        <Label Grid.Row="4" Content="View name:" />
        <Label Grid.Row="4" 
               Grid.Column="1"
               Content="{Binding Path=ViewName}" />

        <StackPanel Grid.Column="3" Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center" Text="Base classes Sets:  " />
            <ComboBox ItemsSource="{Binding Path=BaseClassesSets.Keys}" SelectedItem="{Binding Path=SelectedBaseClassesSet}" Width="200" />
        </StackPanel>
        <TextBlock Grid.Row="2" 
                   Grid.Column="2"
                   HorizontalAlignment="Center"
                   Text=":" />
        <TextBlock Grid.Row="3" 
                   Grid.Column="2"
                   HorizontalAlignment="Center"
                   Text=":" />
        <TextBlock Grid.Row="4" 
                   Grid.Column="2"
                   HorizontalAlignment="Center"
                   Text=":" />
        <TextBox Grid.Row="2" 
                 Grid.Column="3"
                 Text="{Binding Path=ControllerBaseTypeAssemblyQualifiedName}" />
        <TextBox Grid.Row="3" 
                 Grid.Column="3"
                 Text="{Binding Path=ViewModelBaseTypeAssemblyQualifiedName}" />
        <TextBox Grid.Row="4" 
                 Grid.Column="3"
                 Text="{Binding Path=ViewBaseTypeAssemblyQualifiedName}" />

        <Label Grid.Row="6" Content="Controller logical name:" />
        <TextBox Grid.Row="6" 
                 Grid.Column="1"
                 Height="23"
                 Text="{Binding Path=ControllerLogicalName, UpdateSourceTrigger=PropertyChanged}" />

        <StackPanel Grid.Row="8" 
                    Grid.ColumnSpan="5"
                    Margin="5"
                    HorizontalAlignment="Right"
                    Orientation="Horizontal">
            <Button Width="75" 
                    Height="23"
                    Margin="5,0"
                    Click="Ok_Click"
                    Content="OK" />
            <Button Width="75" 
                    Height="23"
                    Margin="5,0"
                    Click="Annulla_Click"
                    Content="Cancel" />
        </StackPanel>
    </Grid>
</Window>